/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.boot.rocket.domain.property;

import com.google.common.collect.Lists;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * 自定义rocket配置.
 *
 * @author zengdegui
 * @since 2024/11/24 18:47
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "rocketmq")
public class RocketProperty {
    /**
     * 发送的主题集合.
     */
    @Builder.Default
    @NestedConfigurationProperty
    private List<String> topics = Lists.newArrayList();
}
